package com;

import com.hello.SampleController;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by lidongji on 2017/8/13.
 */
@Configuration
@EnableDiscoveryClient//该注解能激活Eureka中的DiscoveryClient实现，这样才能实现Controller中对服务信息的输出。
@EnableAutoConfiguration
@ComponentScan
public class ApplicationStarter {
    public static void main(String[] args) throws  Exception{
        SpringApplication.run(ApplicationStarter.class, args);
    }
}
